﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;
using System.IO;

namespace AGameOfThrones.game
{
    public class unit : piece
    {
        public enum unittype
        {
            Footman,
            Knight,
            Boat,
            Siege
        };

        public unittype utype;
        public unittype UnitType
        {
            get { return utype; }
            set
            {
                if (utype != value)
                {
                    utype = value;
                    Notify("UnitType");
                }
            }
        }
        
        public ImageSource unitimage;
        public ImageSource UnitImage
        {
            get { return unitimage; }
            set
            {
                if (unitimage != value)
                {
                    unitimage = value;
                    Notify("UnitImage");
                }
            }
        }

        public ImageSource routedimage;
        public ImageSource RoutedImage
        {
            get { return routedimage; }
            set
            {
                if (routedimage != value)
                {
                    routedimage = value;
                    Notify("RoutedImage");
                }
            }
        }

        public ImageSource FrontImage
        {
            get { return UnitImage; }
            set
            {
                if (UnitImage != value)
                {
                    UnitImage = value;
                    Notify("FrontImage");
                }
            }
        }

        public ImageSource BackImage
        {
            get { return RoutedImage; }
            set
            {
                if (RoutedImage != value)
                {
                    RoutedImage = value;
                    Notify("BackImage");
                }
            }
        }
    }
}
